<header>

    <div>
        Распределенная соцсеть
    </div>
    
    <div class=action>
        <a href="/" data-home>
            <img src="/img/std/home.svg">
        </a>
    </div>

    <?php
    
        if ( is_owner() && ( $soc['url']['path'] === '/' || $soc['url']['path'] === '/config/' ) ) {
            echo "<div class=action><a href='/edit/'><img src='/img/std/edit.svg'></a></div>";
        }

        if ( is_owner() && ( $soc['url']['path'] === '/' || preg_match( '/^\/edit\//', $soc['url']['path'] ) ) ) {
            echo "<div class=action><a href='/config/'><img src='/img/std/config.svg'></a></div>";
        }

        if ( $soc['url']['path'] === '/' ) {
            echo "<div><input type=text name=search></div>";
        }
    ?>

</header>
